﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
using MuaChungDTO;

namespace MuaChungDAO
{
    public class LoaiDealDAO : DataProvider
    {
         public LoaiDealDAO()
        {

        }
        public ArrayList getDsLoaiDeal()
        {
            connect();
            string query = "SELECT * FROM LoaiDeal";
            adapter = new SqlDataAdapter(query, connection);
            DataSet dataset = new DataSet();
            adapter.Fill(dataset);
            ArrayList arr = ConvertDataSetToArrayList(dataset);

            return arr;
        }


    }
}
